package com.ktjy.car.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("vehiclecomplaints")
public class Complaint {
    private Long id;
    private String problem;
    
    @TableField("brandId")
    private Long brandId;
    
    private String status;
    
    @TableField("carType")
    private String carType;
    
    @TableField("complaintsTime")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate complaintsTime;
    
    @TableField(exist = false)  // 表示这个字段不在主表中
    private String brandName;
}